package cn.hou.java.designpattern._20commod;

//具体命令实现类
public class SailCommand implements ICommand {
	//引用命令实际执行者
	private Worker worker;
	public SailCommand(Worker worker) {
		this.worker = worker;
	}
	@Override
	public void excute() {
		worker.sail();
	}
}
